package com.wangyp.tower.tower.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: Wangyp
 * @Date: 2021/4/26 19:28
 * @Description: *
 */
@Configuration
@MapperScan("com.wangyp.tower.tower.mapper")
public class TowerInfoConfig {

    /**
     * 分页插件
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
